package com.learn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
//import io.swagger.annotations.ApiModel;
//import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author DJ_F
 * @since 2025-03-04
 */
@TableName("emp_table")
//@ApiModel(value = "Emp对象", description = "")
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "eid", type = IdType.AUTO)
    private Long eid;

    private String empName;

    private Integer age;

//    @ApiModelProperty("性别，0 为女，1为男，null为未指定")
    private String gender;

    private Byte isDeleted;

//    @ApiModelProperty("测试map转为json的属性，JSON 字段类型处理器")
    private String content;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

//    @ApiModelProperty("版本号，用于乐观锁")
    private Integer version;

    public Long getEid() {
        return eid;
    }

    public void setEid(Long eid) {
        this.eid = eid;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Emp{" +
            "eid = " + eid +
            ", empName = " + empName +
            ", age = " + age +
            ", gender = " + gender +
            ", isDeleted = " + isDeleted +
            ", content = " + content +
            ", createTime = " + createTime +
            ", updateTime = " + updateTime +
            ", version = " + version +
        "}";
    }
}
